﻿/*-----------------------------------------------------------------------
 * <copyright file="WCFLog4.svc" company="O-RID">
 *     Copyright (c)2010 O-RID Co.,Ltd.
 * </copyright>
 * <author>Li Dawei</author>
 * <summary>日志</summary>
 *-----------------------------------------------------------------------
 */
namespace Orid.Management.Statistics.Service.Log4Service
{
    using System.ServiceModel;
    using System.ServiceModel.Activation;

    /// <summary>
    /// 注意: 如果更改此处的类名 "WCFLog4"，也必须更新 Web.config 中对 "WCFLog4" 的引用。
    /// </summary>
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class WCFLog4 : IWCFLog4
    {
        /// <summary>
        /// Info
        /// 记录程序操作信息
        /// </summary>
        /// <param name="message">message 程序操作信息</param>
        public void Info(string message)
        {
            Log log = new Log();
            log.Info(message);
        }

        /// <summary>
        /// Error
        /// 记录程序错误信息
        /// </summary>
        /// <param name="message">message 程序错误信息</param>
        public void Error(string message)
        {
            Log log = new Log();
            log.Error(message);
        }
    }
}
